window.onload = () => {
    const canvas = document.querySelector('#canvas');
    let ctx = canvas.getContext('2d');
    let input = document.querySelector('.name')

    let img = new Image();
    img.onload = () => {
        ctx.drawImage(img, 0, 0);
        ctx.strokeText(input.nodeValue, 50, 500)
    }
    img.src = 'canvas.png';

}